package com.baymax.study.redisson.infrastructure.locks.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "commons.global.lock")
public class LockConfig {
    private List<String> sentinel;

    private String master;

    private String slave;

    private String single;

    private Boolean enable;

    private String password;

    private Boolean cloud;

    private Integer db = 0;

    private Integer connectPoolSize;

}
